import request from '@/utils/request'
// import qs from 'qs'

export const createMenu = (data: any) =>
  request({
    method: 'POST',
    url: '/boss/menu/saveOrUpdate',
    data
  })

export const getEditMenuInfo = (id: number |string = -1) =>
  request({
    method: 'get',
    url: '/boss/menu/getEditMenuInfo',
    params: { id }
  })

export const getAll = () =>
  request({
    method: 'get',
    url: '/boss/menu/getAll'
  })

export const menudelete = (id: string|number) =>
  request({
    method: 'delete',
    url: `/boss/menu/${id}`
  })
